﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10.PrintNumberWithFormattingStrings
{
    class PrintNumberWithFormattingStrings
    {
        static void Main(string[] args)
        {
            Console.Write("Enter a number:");
            double number = double.Parse(Console.ReadLine());
            Console.WriteLine("As a decimal number:{0,15:D}", (int)number);
            Console.WriteLine("As a hexadecimal  number:{0,15:X}", (int)number);
            Console.WriteLine("As a percentage :{0,15:P}", number);
            Console.WriteLine("In scientific notation:{0,15:E}", number);
        }
    }
}
